home *** CD-ROM | disk | FTP | other *** search
- Path: snews.tcel.com!netway
- From: tech@netway.ab.ca (Ritchie Annand)
- Newsgroups: comp.lang.c++
- Subject: Re: Want to use C++ and Delphi: Is it possible?
- Date: 10 Mar 1996 13:57:46 GMT
- Organization: Telnet Canada (403) 262-5859 info@tcel.com
- Message-ID: <4hun4q$npg@challenge.tcel.com>
- References: <96066.181629IMEG@psuvm.psu.edu>
- NNTP-Posting-Host: 204.209.150.60
- X-Newsreader: News Xpress Version 1.0 Beta #4
-
- In article <96066.181629IMEG@psuvm.psu.edu>,
- Sudhir Kumar <IMEG@psuvm.psu.edu> wrote:
- >Dear netters:
- > I am really attracted to Delphi for designing my GUI but I would
- >like to use C++ to do the rest of the coding. I would like to know if this
- >is a sensible thing to do. That is, can I freely mix Delphi with C++ code?
-
- I wouldn't use the term "freely mix" ;) The easiest way to integrate the
- both of them is to use one or the other as a DLL. Delphi can also handle
- linking in .OBJs... but in either case, you'd have to flatten out your
- classes into access methods - .OBJs and .DLLs don't take simply containing
- classes very well, and you'd have to demangle C++'s classes by giving them
- extern "C" { } accessors if you were to link your C++ code into the Delphi
- anyhow.
-
- Delphi 2.0 is Windows 95/NT 3.51+ only, but it gives you the additional
- option of letting Delphi spit out .OBJ files for linking.
-
- > Or, should I use OWL and C++. In this case, why Borland does not
- >have a Delphi like product for C++?
-
- <grin> Delphi doesn't use OWL. They've built up a VCL from scratch - which
- uses some features in Delphi's language that will take a while to emulate in
- C++ (never impossible, of course... just difficult ;) - virtual constructors,
- cross-class method pointers, hierarchical RTTI and published members.
-
- Have you checked out BC++ 5.0 yet?
-
- > Thanks in advance for your replies.
- > Sudhir
- > imeg@psuvm.psu.edu
-
- Y'welcome ;)
-
- --=- Ritchie A.
-